package com.lichuang.fruitvarietysm.goods.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class GoodsCategoryVO implements Serializable {
    @ApiModelProperty(value = "商品id")
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    @ApiModelProperty(value = "类别id")
    private Integer categoryId;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品主图，url地址")
    private String mainImage;


    @ApiModelProperty(value = "商品详情")
    private String goodsDetail;

    @ApiModelProperty(value = "价格，单位-元保留两位小数")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


    @ApiModelProperty(value = "总销量")
    private Integer goodsTotalSales;

    @ApiModelProperty(value = "周销量")
    private Integer goodsWeeklySales;

    @ApiModelProperty(value = "父类别id，当id=0时说明是根节点，一级类别")
    private Integer parentId;


}
